package com.sjgtw.cloud.common.security.config;

import java.util.TimeZone;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;

/**
 * <p>Title: 系统初始化配置</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2020-7-1
 */
public class ApplicationConfig
{
	/**
	 * 时区矫正配置
	 */
	@Bean
	public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization() {
		return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault());
	}
}
